#include "CmdAvancer.h"

std::string CmdAvancer::tag = "AVANCER";
CmdAvancer CmdAvancer::monInstance = CmdAvancer();

void CmdAvancer::executer(CommandLine* commandLine)
{
	std::string param1 = commandLine->getParametre();
	std::string param2 = commandLine->getParametre();
	Position pos(atoi(param1.c_str()),atoi(param2 .c_str()));
	robot->avancer(pos);
}

Commande* CmdAvancer::constructeurVirtuel()
{
	return new 	CmdAvancer();
}
